from app.database import TicketDetail
from app.database import Ticket

from sqlalchemy.orm import Mapped

# sqlalchemy.orm.base.Mapped


def run(model_class: Ticket):
    model_object: Ticket = model_class()
    for col in model_class.__table__.columns:
        print(f"{col.name}: {col.type}")

    for item, item_type in model_class.__annotations__.items():
        print(item)
        print(type(item_type))

    pass


if __name__ == "__main__":
    run(Ticket)
